package com.dp.logfactory;

import org.junit.Test;

public class Client {
	/**
	 * 工厂方法模式包括:抽象产品,抽象工厂,具体产品,具体工厂
	 */
	@Test
	public void getLogger() {
		
		LoggerFactory logf=null;
		Logger logger=null;
		
		logf=new FileLoggerFactory();
		logger=logf.CreateLogger();
		System.out.println(logger);
		logger.WriteLog();
		
	}
}
